export const widgetDecoration =  {
  code: 'widget-decoration',
  type: 'ornament',
  label: '装饰',
  icon: 'border',
  preview: require('./preview/widget-decoration.png'),
  options: {
    // 配置
    setup: [
      {
        type: 'a-input-text',
        label: '图层名称：',
        name: 'layerName',
        required: false,
        placeholder: '',
        value: '装饰'
      }, {
        type: 'a-select',
        label: '装饰样式',
        name: 'decoration',
        required: false,
        placeholder: '',
        selectOptions: [
          {code: 'dv-decoration-1', name: '装饰1'},
          {code: 'dv-decoration-2', name: '装饰2'},
          {code: 'dv-decoration-3', name: '装饰3'},
          {code: 'dv-decoration-4', name: '装饰4'},
          {code: 'dv-decoration-5', name: '装饰5'},
          {code: 'dv-decoration-6', name: '装饰6'},
          {code: 'dv-decoration-7', name: '装饰7'},
          {code: 'dv-decoration-8', name: '装饰8'},
          {code: 'dv-decoration-9', name: '装饰9'},
          {code: 'dv-decoration-10', name: '装饰10'},
          {code: 'dv-decoration-11', name: '装饰11'},
          {code: 'dv-decoration-12', name: '装饰12'}
        ],
        value: 'dv-decoration-1'
      },
      {
        type: 'a-input-number',
        label: '动画时常：',
        name: 'dur',
        required: false,
        placeholder: '',
        value: 3
      },
      {
        type: 'a-input-number',
        label: '扫描动画时长：',
        name: 'scanDur',
        required: false,
        placeholder: '',
        value: 3
      },
      {
        type: 'a-input-number',
        label: '光晕动画时长：',
        name: 'haloDur',
        required: false,
        placeholder: '',
        value: 2
      },
      {
        type: 'custom-color',
        label: '配色',
        name: 'customColor',
        limit: 2,
        required: false,
        value: [{color: '#235fa7'}, {color: '#4fd2dd'}],
      }
    ],
    // 数据
    data: [],
    // 坐标
    position: [
      {
        type: 'a-input-number',
        label: '横坐标',
        name: 'left',
        required: false,
        placeholder: '',
        value: 0,
      },
      {
        type: 'a-input-number',
        label: '纵坐标',
        name: 'top',
        required: false,
        placeholder: '',
        value: 0,
      },
      {
        type: 'a-input-number',
        label: '深度',
        name: 'zIndex',
        required: false,
        placeholder: '',
        value: 0,
      },
      {
        type: 'a-input-number',
        label: '宽度',
        name: 'width',
        required: false,
        placeholder: '该容器在1920px大屏中的宽度',
        value: 300,
      },
      {
        type: 'a-input-number',
        label: '高度',
        name: 'height',
        required: false,
        placeholder: '该容器在1080px大屏中的高度',
        value: 200
      },
    ],
  }
}